#include <utils.h>
#include <evolutive/impl/RouletteWheelSelector.h>
#include <iostream>

using namespace std;

int main(int argc, char** argv){

	RouletteWheelSelector rs;

	vector<Case*> cases;

	//Create 20 cases
	Case* c = 0;
	for(int i = 0; i < 20; i++) {
		c = new Case();
		c->setId(i);
		c->setFitness(1);
		cases.push_back(c);
	}

	//Select 10 pairs
	for(int i = 0; i < 10; i++) {
		cout << "(" << rs.select(cases)->getId() << ", " << rs.select(cases)->getId() << ")\n";
	}


	return 0;
}
